﻿using CommunityToolkit.Mvvm.Input;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdvVerifyGUI.ViewModels
{
    internal partial class MainWindowViewModel
    {
        [RelayCommand]
        private void ButtonClick()
        {
            // 应用启动时导航到RecipeView
            _regionManager.RequestNavigate("MainRegion", "RecipeView");
        }

        IRegionManager _regionManager;
        public MainWindowViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }
    }
}
